@echo off

Set BuildConfig=Debug
Set vsExe="C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"

set time1=%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%

if not exist %vsExe%  (
	Set vsExe="C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"	
)

if not exist %vsExe% goto stop

@echo Start building IISManagement.csproj
%vsExe% /build %BuildConfig% "IISManagement\IISManagement.csproj" /Out "BuildCommonProject.%BuildConfig%.log"
@echo End building IISManagement.csproj

echo. 

@echo Start building InputDataToDB.csproj
%vsExe% /build %BuildConfig% "InputDataToDB\InputDataToDB.csproj" /Out "BuildCommonProject.%BuildConfig%.log"
@echo End building InputDataToDB.csproj
set time2=%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%
set /a time3=%time2%-%time1%

echo.

@echo total run time: %time3%ms

echo.

pause 
goto :EOF

:stop
	@echo not exists vs2008
	pause
	goto :EOF

